#!/bin/sh  
DOWNDIR="/tmp/hdd/volumes/HDD1/mybt"
CONFIGDIR="/tmp/hdd/root/transmission"
if [ ! -d /tmp/hdd/root/lost+found ] ; then
  exit
fi
if [ ! -d $DOWNDIR ]; then
  mkdir -p $DOWNDIR
fi
if [ ! -d $CONFIGDIR ]; then
  mkdir -p $CONFIGDIR
  cp -af /opt/etc/transmission/* $CONFIGDIR
fi
/opt/bin/transmission-daemon --paused -T -g $CONFIGDIR -w $DOWNDIR
